home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news1.io.org!torfree!kishonti
- From: kishonti@torfree.net (William Kishonti)
- Subject: function _main in c0.asm error
- Message-ID: <Dnt9yx.1HK.0.queen@torfree.net>
- Organization: Toronto Free-Net
- X-Newsreader: TIN [version 1.2 PL2]
- Date: Tue, 5 Mar 1996 20:23:21 GMT
-
- Hi, I have tried everything (so I think).
-
- Every time I try to run my code (which I copied directly out of a
- tutorial) I get the same two error messages and the program won't execute.
-
- Firstly when declaring a class.
-
- [Sample Code]
-
- class kbmouseobj {
- ...
- }
-
- Always comes back with a "declaration error" on "class kbmouseobj { when
- I try to compile the CPP file on it's own, however, the second problem
- only occurs when I try to compile and run the TEST program for the above
- mouse handler. I get an error "function _main not defined in c0.asm"
-
- If anyone has ANY CLUE as to what the possible problems could be, I would
- really appretiate it... I have checked the code and it is ver-batum from
- the book... I have checked other books with no results... there is never
- any reference to c0.asm anywhere...
-
- BTW I am using Borland Turbo C++ 3.0 for DOS.
-
- Thanks ahead of time.
-
- You can E-mail me directly at kishonti@torfree.net.
-
-